import React, { useContext } from 'react';
import CountContext from './CountContext'

function Counter1() {
  const count = useContext(CountContext)  //一句话就可以得到count值
  return (<h2>{count.test}</h2>)
}
export default Counter1;